#include <QApplication>
#include <QTime>

#include "graphicsview.h"

extern "C" int Q_DECL_EXPORT entry(QWidget**w)
{
	*w = new GraphicsView;
	return 0;
}

int main2(int argc, char ** argv)
{
	QApplication app( argc, argv );
	app.setApplicationName("battleship");
	app.setOrganizationName("Taiko");
	qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));  // seed the random number generator
	GraphicsView win;
	win.setWindowTitle("Battleship");
	win.show();

	app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
	return app.exec();
}
